# --------Numbers Review--------
# Print 100 plus 25.
import math
print(100+25)  # √

# Print 100 minus 25.
print(100-25)  # √

# Print 100 multiplied by 25.
print(100*25)  # √

# Print 100 divided by 25.
print(100/25)  # √

# 29 ÷ 3 = 9 ... 2 Print the 9 and 2 using 29 and 3
print(29//3)  # √
print(29 % 3)  # √

number_0 = 1
# Multiply number_0 itself by 100.
print(int(number_0) * 100)  # × Didn't ask you to print it.
# Besides, you need int() function only when the variable is not a number.
number_0 *= 100  # Instead, change number_0 itself.

# Divide number_0 itself by 0.25.
print(int(number_0) / 2.25)  # × Didn't ask you to print it
# Besides, you need int() function only when the variable is not a number.
number_0 /= 0.25  # Instead, change number_0 itself.

# Print number_0. What do you expect?
print(number_0)
# 1 # ×
# Should be 25.

# Change number_0 itself to the square root(平方根) of it.
print(number_0 ** 0.5)  # × Didn't ask you to print it
number_0 **= 0.5   # Instead, change number_0 itself.

number_1 = -3 ** 2 * 5 - .678
# What do you think is the value of number_1? (With the help of your calculator.)
# -45.678

# Print the absolute number of number_1.(绝对值)
print(abs(number_1))  # √

# Print the rounded, ceiling and floor of number_1.(四舍五入、向上取整、向下取整)

print(round(number_1))  # √
# You need float() function only when the variable is not a number
print(math.ceil(float(number_1)))  # ×
print(math.floor(float(number_1)))  # ×

# You need float() function only when the variable is not a number
print(math.ceil(number_1))
# You need float() function only when the variable is not a number
print(math.floor(number_1))

# How do you get something like 55.3 from number_1 using the round function? (四舍五入到小数点后1位)
print(abs(round(number_1) - 9.3))  # ×
print(round(number_1 * 10)/10)


# Print the converted boolean (True or False) of number_1. What do you expect?
bool(number_1)  # √
# True

# Print the converted boolean (True or False) of 0. What do you expect?
print(bool(0))  # √
# False
